<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查询图书</title>
    <link rel="stylesheet" href="/css/normalize.css">
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/bootstrap.min.css">
    <style>
        a{
            text-decoration: none;
            color: #303133;
        }

        .tr-content:hover {
            background-color: #EBEEF5;
        }
    </style>
</head>
<body>
    <table class="table">
        <tr>
            <th>编号</th>
            <th>书名</th>
            <th>作者</th>
            <th>类型</th>
            <th>isbn</th>
            <th>库存</th>
            <th>价格</th>
        </tr>
        <tr th:class="'tr-content'" th:each="book : ${bookList}">
            <td th:text="${book.id}"></td>
            <td th:text="${book.bookName}"></td>
            <td th:text="${book.author}"></td>
            <td th:text="${typeMap.get(book.typeId)}"></td>
            <td th:text="${book.isbn}"></td>
            <td th:text="${book.count}"></td>
            <td th:text="${book.price}"></td>
        </tr>
    </table>
</body>
</html>